home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1996 #15 / Monster Media Number 15 (Monster Media)(July 1996).ISO / math / rtksp108.zip / FINANCE.SP_ / FINANCE (.txt)
Microsoft Windows Help File Content  |  1996-04-03  |  25KB  |  380 lines

  1. R-Tek Scratchpad
  2. Version   1.00
  3. TSPadDatad
  4. TPictured
  5. TCommentTextd
  6. TLogFontd
  7. Times New Roman
  8. densed BT
  9. Financial Problems
  10. nnnnnnnnnnnnnnnnnn]
  11. TCommentTextd
  12. Five Value Problems
  13. nnnnnnnnnnnnnnnnnnn]
  14. TCommentTextd
  15. Five value problems are financial problems involving these five interdependent variables:Y
  16. nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn]
  17. TCommentTextd
  18. Present Value
  19. nnnnnnnnnnnnn]
  20. TCommentTextd
  21. Future Value
  22. nnnnnnnnnnnn]
  23. TCommentTextd
  24. Number of Payment Periods
  25. nnnnnnnnnnnnnnnnnnnnnnnnn]
  26. TCommentTextd
  27. Interest per payment period
  28. nnnnnnnnnnnnnnnnnnnnnnnnnnn]
  29. TCommentTextd
  30. the Payment Value itself
  31. nnnnnnnnnnnnnnnnnnnnnnnn]
  32. TCommentTextd
  33. To solve problems of this sort, first create a five element vector and set the four known
  34. elements.  Then call the function fiveval(m, n) where m is the 5 vector with the appropriate
  35. 4 values set.  n is the index of the element that is to be calculated based on the other four.
  36. The function returns a new 5 vector containing the same 4 original elements with the n-th
  37. element set at the solved value.
  38. nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnznnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnznnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnznnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnznnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn]
  39. TCommentTextd
  40. Each element of the m vector must contain a particular variable.  We will use the following
  41. assignments to make our program easier to read:
  42. nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnznnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn]
  43. TExpressiond
  44. TCommentTextd
  45. Present Value
  46. nnnnnnnnnnnnn]
  47. TCommentTextd
  48. Future Value
  49. nnnnnnnnnnnn]
  50. TExpressiond
  51. TCommentTextd
  52. Number of Payment Periods
  53. nnnnnnnnnnnnnnnnnnnnnnnnn]
  54. TCommentTextd
  55. The value assigned to each of these variables
  56. is its index in the vector mJ
  57. nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnznnnnnnnnnnnnnnnnnnnnnnnnnnnn]
  58. TExpressiond
  59. nPmts:3
  60. TCommentTextd
  61. Interest per payment period
  62. nnnnnnnnnnnnnnnnnnnnnnnnnnn]
  63. TExpressiond
  64. intr:4
  65. TExpressiond
  66. pmt:5
  67. TCommentTextd
  68. the Payment Value itself
  69. nnnnnnnnnnnnnnnnnnnnnnnn]
  70. TExpressiond
  71. m:zmat(1,5)
  72. TCommentTextd
  73. Create a 5 vector that initially contains all zeros3
  74. nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn]
  75. TCommentTextd
  76. Example 1:
  77. nnnnnnnnnn]
  78. TCommentTextd
  79. Calculate a monthly interest payment knowing loan value,  the term of the loan,
  80. and the APR (annual percentage rate)t
  81. nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnznnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn]
  82. TExpressiond
  83. m[pv]:110000.00
  84. TCommentTextd
  85. Amount of loan
  86. nnnnnnnnnnnnnn]
  87. TExpressiond
  88. m[fv]:0.00
  89. TCommentTextd
  90. Indicates loan is to be completely paid off+
  91. nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn]
  92. TExpressiond
  93. m[nPmts]:15*12
  94. TCommentTextd
  95. 15yr loan with monthly payments
  96. nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn]
  97. TCommentTextd
  98. 8.5% APR  Divide by 12 to get monthly interest.
  99. nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn]
  100. TExpressiond
  101. m[intr]:8.5%/12
  102. TCommentTextd
  103. Use fiveval to calculate unknown and save result
  104. back into the original m vectorP
  105. nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnznnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn]
  106. TExpressiond
  107. m:fiveval(m,pmt)
  108. TExpressiond
  109. m[pmt]
  110. TCommentTextd
  111. Monthly payment determined by other 4 variables/
  112. nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn]
  113. THardPageBreakd
  114. TCommentTextd
  115. Example 2:
  116. nnnnnnnnnn]
  117. TCommentTextd
  118. Calculate how much one can afford to borrow knowing the term of the loan,
  119. the APR, and the maximum monthly payment one can handle.
  120. nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnznnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn]
  121. TExpressiond
  122. m[fv]:0.00
  123. TCommentTextd
  124. Indicates loan is to be completely paid off+
  125. nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn]
  126. TExpressiond
  127. m[nPmts]:30*12
  128. TCommentTextd
  129. 30yr loan with monthly payments
  130. nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn]
  131. TExpressiond
  132. m[intr]:8.5%/12
  133. TCommentTextd
  134. 8.5% APR  Divide by 12 to get monthly interest.
  135. nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn]
  136. TExpressiond
  137. m[pmt]:750.00
  138. TCommentTextd
  139. Maximum affordable monthly payment"
  140. nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn]
  141. TExpressiond
  142. m:fiveval(m,pv)
  143. TCommentTextd
  144. Amount of loan one can afford to borrow'
  145. nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn]
  146. TExpressiond
  147. m[pv]
  148. TCommentTextd
  149. Example 3:
  150. nnnnnnnnnn]
  151. TCommentTextd
  152. Continue on with example 2. Consider that we borrowed the maximum we could
  153. presently afford, but with the intention of making monthly payments for only 
  154. 5yrs and then paying the loan off in full.  Such a payment is called a 
  155. balloon payment.  The problem is this:  What is the balloon payment amount? 
  156. We solve this by calculating the balance due on the loan after making the 
  157. 60th monthly payment.  We make our balloon payment at the same time we 
  158. make the 60th payment so:
  159. nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnznnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnznnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnznnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnznnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnznnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnznnnnnnnnnnnnnnnnnnnnnnnnn]
  160. TExpressiond
  161. m[nPmts]:5*12
  162. TCommentTextd
  163. The other values of m come from the calculation
  164. of fiveval in problem 2G
  165. nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnznnnnnnnnnnnnnnnnnnnnnnn]
  166. TExpressiond
  167. m:fiveval(m,fv)
  168. TCommentTextd
  169. Calculate the balance due after 60 payments+
  170. nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn]
  171. TExpressiond
  172. m[pmt]+m[fv]
  173. TCommentTextd
  174. The balloon payment is the final monthly payment
  175. plus the balance due after making the final paymentd
  176. nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnznnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn]
  177. TCommentTextd
  178. Example 4:
  179. nnnnnnnnnn]
  180. TCommentTextd
  181. Calculate the total interest paid over the term of the loan;
  182. nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn]
  183. TExpressiond
  184. m[pv]:100000.00
  185. TCommentTextd
  186. Borrow $100,000
  187. nnnnnnnnnnnnnnn]
  188. TExpressiond
  189. m[fv]:0.00
  190. TCommentTextd
  191. Pay it off
  192. nnnnnnnnnn]
  193. TExpressiond
  194. m[nPmts]:30*12
  195. TCommentTextd
  196. 30yr loan    
  197. nnnnnnnnn]
  198. TCommentTextd
  199. Interest rate
  200. nnnnnnnnnnnnn]
  201. TExpressiond
  202. m[intr]:8.5%/12
  203. TExpressiond
  204. m:fiveval(m,pmt)
  205. TExpressiond
  206. m[pmt]
  207. TCommentTextd
  208. Calculated payment
  209. nnnnnnnnnnnnnnnnnn]
  210. THardPageBreakd
  211. TCommentTextd
  212. There are two functions to calculate the interest and principal for specific payment ranges.\
  213. nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn]
  214. TCommentTextd
  215. ifiveval(m, p1, p2) calculates the interest paid from payment p1 to payment p2 inclusiveX
  216. nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn]
  217. TCommentTextd
  218. pfiveval(m, p1, p2) calculates the principal paid from payment p1 to payment p2 inclusiveY
  219. nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn]
  220. TCommentTextd
  221. So, the total interest on the above loan is:,
  222. nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn]
  223. TExpressiond
  224. ifiveval(m,1,m[nPmts])
  225. TCommentTextd
  226. The total paid on the $100,000 mortgage is the amount borrowed plus the interest paid:V
  227. nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn]
  228. TExpressiond
  229. total:m[pv]+ifiveval(m,1,m[nPmts])"
  230. TCommentTextd
  231. Alternatively, you can arrive at the total more simply for this case by multiplying the
  232. payment amount by the number of payments:
  233. nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnznnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn]
  234. TExpressiond
  235. total:m[pmt]*m[nPmts]
  236. TCommentTextd
  237. and get the total interest by subtracting the principal:8
  238. nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn]
  239. TExpressiond
  240. total-m[pv]
  241. TCommentTextd
  242. ifiveval and pfiveval are most useful for the more complicated cases of determing principal
  243. and interest between interim payments - such as determining the total interest paid on
  244. a house mortgage during a year so that the individual can take the appropriate tax deduction.
  245. nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnznnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnznnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn]
  246. TCommentTextd
  247. Example 5:
  248. nnnnnnnnnn]
  249. TCommentTextd
  250. Go back up a few lines, change the interest rate to 15%, and rerun. Now take a look
  251. at the total cost of the loan. Frightening, isn't it?!
  252. nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnznnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn]
  253. THardPageBreakd
  254. TCommentTextd
  255. Example 6:
  256. nnnnnnnnnn]
  257. TCommentTextd
  258. Examine how rapidly the loan is repaid, but first consider what fraction of each
  259. payment goes to interest(which does not help to repay the loan)
  260. nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnznnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn]
  261. TGraphd
  262. TGraphSetupDatad
  263. TTraced
  264. TExpressiond
  265. ifiveval(m,n,n)/m[pmt]
  266. TExpressiond
  267. TExpressiond
  268. TExpressiond
  269. m[nPmts]
  270. TCommentTextd
  271. You can easily see that at the beginning, almost the entire payment goes to interest
  272. so you can probably predict the shape of the curve that shows the payoff value of the
  273. loan after each payment period.
  274. nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnznnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnznnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn]
  275. TGraphd
  276. TGraphSetupDatad
  277. TTraced
  278. TExpressiond
  279. m[pv]-pfiveval(m,1,n)
  280. TExpressiond
  281. TExpressiond
  282. TExpressiond
  283. m[nPmts]
  284. TCommentTextd
  285. Yet another way of looking at this, consider a graph of total paid, total interest paid
  286. and total principal paidp
  287. nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnznnnnnnnnnnnnnnnnnnnnnnnn]
  288. TGraphd
  289. TGraphSetupDatad
  290. TTraced
  291. TExpressiond
  292. n*m[pmt]
  293. TTraced
  294. TExpressiond
  295. ifiveval(m,1,n)
  296. TTraced
  297. TExpressiond
  298. pfiveval(m,1,n)
  299. TExpressiond
  300. TExpressiond
  301. TExpressiond
  302. m[nPmts]
  303. THardPageBreakd
  304. TCommentTextd
  305. Example 7:
  306. nnnnnnnnnn]
  307. TCommentTextd
  308. You want to open a savings account and deposit the same amount every month 
  309. for the next 10 years.  What should your deposit be to have a total of $30000 
  310. at the end of 10 years assuming an interest rate of 5%?  This differs from the 
  311. preceding examples in that the first payment is made at the beginning of the 
  312. first period.  This form of annuity is called "annuity due".  The functions 
  313. available to handle annuity due calculations have the ordinary name with b (for 
  314. beginning) appended.  This example calls for the use of such a function, ie 
  315. fivevalb(m, n).  Another point to note is that the payments calculated for this 
  316. kind of problem are negative.
  317. nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnznnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnznnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnznnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnznnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnznnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnznnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnznnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnznnnnnnnnnnnnnnnnnnnnnnnnnnnnn]
  318. TExpressiond
  319. m[pv]:0.00
  320. TCommentTextd
  321. start with no money in the account"
  322. nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn]
  323. TCommentTextd
  324. amount we wish to accumulate
  325. nnnnnnnnnnnnnnnnnnnnnnnnnnnn]
  326. TExpressiond
  327. m[fv]:30000.00
  328. TExpressiond
  329. m[nPmts]:120
  330. TCommentTextd
  331. 10 years
  332. nnnnnnnn]
  333. TCommentTextd
  334. interest rate for deposit
  335. nnnnnnnnnnnnnnnnnnnnnnnnn]
  336. TExpressiond
  337. m[intr]:5.0%/12
  338. TExpressiond
  339. m:fivevalb(m,pmt)
  340. TCommentTextd
  341. calculated necessary monthly deposit$
  342. nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn]
  343. TExpressiond
  344. m[pmt]
  345. TCommentTextd
  346. Other financial functions:
  347. nnnnnnnnnnnnnnnnnnnnnnnnnn]
  348. TCommentTextd
  349. The APR is the annual percentage rate.  It is the interest rate per compounding period 
  350. multiplied by the number of compounding periods per year.
  351. nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnznnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn]
  352. TCommentTextd
  353. The EFF is the annual effective rate.  It is the interest rate that produces the same interest
  354. as the APR, but with a single annual compounding period.
  355. nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnznnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn]
  356. TExpressiond
  357. EFFtoAPR(8.0,12)
  358. TExpressiond
  359. APRtoEFF(8.0,12)
  360. TPrinterDimensionsd
  361. TSPadInitDatad
  362. TLogFontd
  363. Times New Roman
  364. densed BT
  365. TLogFontd
  366. Arial
  367. TLogFontd
  368. Arial
  369. TLogFontd
  370. Symbol
  371. TLogFontd
  372. Symbol
  373. TNumberFormatDatad
  374. TGraphSetupDatad
  375. TPageSetupDatad
  376. 151.0
  377. ea1.0
  378. eB1.0
  379. R-Tek Scratchpad Example File FINANCE
  380.